#include "stdafx.h"
#include "luastudio.h"

LuaStudio::LuaStudio(QWidget *parent, Qt::WFlags flags)
	: QMainWindow(parent, flags)
{
	ui.setupUi(this);
		
}

LuaStudio::~LuaStudio()
{
}

void LuaStudio::newFile()
{
	HANDLE hLibrary = LoadLibrary("TextEditor.dll");
	GetProcAddress(hLibrary, "");

	TextEditor* TextEditorForm = new TextEditor;
	ui.mdiArea->addSubWindow(TextEditorForm);

	TextEditorForm->show();

	return;
}
